# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xsetroot
pkgver=1.1.2
pkgrel=0
pkgdesc="X.Org xsetroot application"
url="http://xorg.freedesktop.org"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxmu-dev libxcursor-dev xbitmaps util-macros"
source="https://www.x.org/releases/individual/app/xsetroot-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -C "$builddir" check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0b9df1b72305e5c24f1e1664578aa4411a5ffcdc5d318458117594e641f01c34700205b0d16c08abf4a8106d36128ccdbe1ea1f1035fce9018d6b52801a8b72b  xsetroot-1.1.2.tar.bz2"
